.class Lcom/xingbook/xingbook/c/e;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method constructor <init>(Lcom/xingbook/xingbook/c/b;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/xingbook/xingbook/c/e;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 8

    const/4 v7, 0x1

    const/4 v6, -0x1

    const/4 v5, 0x0

    iget-object v0, p0, Lcom/xingbook/xingbook/c/e;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/xingbook/c/b;

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v1, v0, Lcom/xingbook/xingbook/c/b;->c:Lcom/xingbook/xingbook/c/d;

    if-eqz v1, :cond_2

    iget-object v1, v0, Lcom/xingbook/xingbook/c/b;->c:Lcom/xingbook/xingbook/c/d;

    invoke-interface {v1}, Lcom/xingbook/xingbook/c/d;->b()V

    :cond_2
    iget v1, p1, Landroid/os/Message;->what:I

    packed-switch v1, :pswitch_data_0

    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    goto :goto_0

    :pswitch_0
    iget v1, p1, Landroid/os/Message;->arg1:I

    const/16 v2, 0xc8

    if-ne v1, v2, :cond_b

    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Lcom/xingbook/park/e/c;

    invoke-virtual {v1}, Lcom/xingbook/park/e/c;->a()I

    move-result v2

    if-eqz v2, :cond_3

    const/16 v3, 0xfa6

    if-ne v2, v3, :cond_6

    :cond_3
    if-nez v2, :cond_4

    iget-object v2, v0, Lcom/xingbook/xingbook/c/b;->b:Lcom/xingbook/xingbook/b/a;

    invoke-virtual {v2}, Lcom/xingbook/xingbook/b/a;->t()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/xingbook/xingbook/c/a;->b(Ljava/lang/String;)V

    :cond_4
    new-instance v2, Lcom/xingbook/xingbook/b/c;

    iget-object v3, v0, Lcom/xingbook/xingbook/c/b;->b:Lcom/xingbook/xingbook/b/a;

    invoke-direct {v2, v3}, Lcom/xingbook/xingbook/b/c;-><init>(Lcom/xingbook/xingbook/b/a;)V

    invoke-static {v0}, Lcom/xingbook/xingbook/c/b;->a(Lcom/xingbook/xingbook/c/b;)Lcom/xingbook/park/d/e;

    move-result-object v3

    iget-object v4, v0, Lcom/xingbook/xingbook/c/b;->b:Lcom/xingbook/xingbook/b/a;

    invoke-virtual {v4}, Lcom/xingbook/xingbook/b/a;->t()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Lcom/xingbook/park/d/e;->c(Ljava/lang/String;)I

    move-result v3

    if-ne v3, v6, :cond_5

    invoke-static {v0}, Lcom/xingbook/xingbook/c/b;->a(Lcom/xingbook/xingbook/c/b;)Lcom/xingbook/park/d/e;

    move-result-object v3

    invoke-virtual {v3, v2, v7}, Lcom/xingbook/park/d/e;->a(Lcom/xingbook/xingbook/b/c;Z)Z

    move-result v3

    if-nez v3, :cond_5

    iget-object v1, v0, Lcom/xingbook/xingbook/c/b;->a:Landroid/content/Context;

    if-eqz v1, :cond_0

    iget-object v0, v0, Lcom/xingbook/xingbook/c/b;->a:Landroid/content/Context;

    const-string v1, "\u6570\u636e\u5e93\u63d2\u5165\u5931\u8d25"

    invoke-static {v0, v1, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_0

    :cond_5
    invoke-virtual {v1}, Lcom/xingbook/park/e/c;->f()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    invoke-virtual {v2, v1}, Lcom/xingbook/xingbook/b/c;->e(Ljava/lang/String;)V

    invoke-static {v0}, Lcom/xingbook/xingbook/c/b;->b(Lcom/xingbook/xingbook/c/b;)Lcom/xingbook/service/download/f;

    move-result-object v2

    iget-object v3, v0, Lcom/xingbook/xingbook/c/b;->b:Lcom/xingbook/xingbook/b/a;

    invoke-virtual {v3}, Lcom/xingbook/xingbook/b/a;->t()Ljava/lang/String;

    move-result-object v3

    iget-object v4, v0, Lcom/xingbook/xingbook/c/b;->b:Lcom/xingbook/xingbook/b/a;

    invoke-virtual {v4}, Lcom/xingbook/xingbook/b/a;->u()Ljava/lang/String;

    move-result-object v4

    invoke-interface {v2, v3, v4, v1, v7}, Lcom/xingbook/service/download/f;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V

    iget-object v1, v0, Lcom/xingbook/xingbook/c/b;->c:Lcom/xingbook/xingbook/c/d;

    if-eqz v1, :cond_0

    iget-object v0, v0, Lcom/xingbook/xingbook/c/b;->c:Lcom/xingbook/xingbook/c/d;

    invoke-interface {v0}, Lcom/xingbook/xingbook/c/d;->c()V

    goto/16 :goto_0

    :cond_6
    const/16 v3, 0x7ee

    if-ne v2, v3, :cond_8

    iget-object v1, v0, Lcom/xingbook/xingbook/c/b;->c:Lcom/xingbook/xingbook/c/d;

    if-eqz v1, :cond_7

    iget-object v0, v0, Lcom/xingbook/xingbook/c/b;->c:Lcom/xingbook/xingbook/c/d;

    invoke-interface {v0}, Lcom/xingbook/xingbook/c/d;->a()V

    goto/16 :goto_0

    :cond_7
    iget-object v0, v0, Lcom/xingbook/xingbook/c/b;->a:Landroid/content/Context;

    const v1, 0x7f0800c5

    invoke-static {v0, v1, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto/16 :goto_0

    :cond_8
    const/16 v3, 0x7d4

    if-eq v2, v3, :cond_9

    const/16 v3, 0x7e8

    if-ne v2, v3, :cond_a

    :cond_9
    iget-object v0, v0, Lcom/xingbook/xingbook/c/b;->a:Landroid/content/Context;

    const v1, 0x7f0800c7

    invoke-static {v0, v1, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto/16 :goto_0

    :cond_a
    iget-object v0, v0, Lcom/xingbook/xingbook/c/b;->a:Landroid/content/Context;

    invoke-virtual {v1}, Lcom/xingbook/park/e/c;->d()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto/16 :goto_0

    :cond_b
    iget v1, p1, Landroid/os/Message;->arg1:I

    if-ne v1, v6, :cond_0

    iget-object v0, v0, Lcom/xingbook/xingbook/c/b;->a:Landroid/content/Context;

    const v1, 0x7f0800cd

    invoke-static {v0, v1, v5}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto/16 :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
    .end packed-switch
.end method
